← Index
NYTProf Performance Profile   
For ../prof.pl
  Run on Wed Dec 14 15:33:55 2022
Reported on Wed Dec 14 15:40:04 2022

Filename(eval 431)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3]
StatementsExecuted 2593358 statements in 2.12s
Eval Invoked At/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
72038222.03s3.14sJSON::Schema::Modern::Annotation::::newJSON::Schema::Modern::Annotation::new
11112µs30µsJSON::Schema::Modern::Annotation::::BEGIN@11.334JSON::Schema::Modern::Annotation::BEGIN@11.334
1117µs19µsJSON::Schema::Modern::Annotation::::BEGIN@74JSON::Schema::Modern::Annotation::BEGIN@74
1115µs15µsJSON::Schema::Modern::Annotation::::BEGIN@80JSON::Schema::Modern::Annotation::BEGIN@80
1115µs12µsJSON::Schema::Modern::Annotation::::BEGIN@90JSON::Schema::Modern::Annotation::BEGIN@90
1114µs4µsJSON::Schema::Modern::Annotation::::BEGIN@16.335JSON::Schema::Modern::Annotation::BEGIN@16.335
1113µs9µsJSON::Schema::Modern::Annotation::::BEGIN@85JSON::Schema::Modern::Annotation::BEGIN@85
1113µs8µsJSON::Schema::Modern::Annotation::::BEGIN@98JSON::Schema::Modern::Annotation::BEGIN@98
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1{
221µs my $isa_check_for_unknown = ${$_[1]->{"\$isa_check_for_unknown"}};
310s my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}};
410s my $isa_check_for_keyword = ${$_[1]->{"\$isa_check_for_keyword"}};
511µs my $coerce_for_absolute_5fkeyword_5flocation = ${$_[1]->{"\$coerce_for_absolute_5fkeyword_5flocation"}};
610s my $isa_check_for_absolute_5fkeyword_5flocation = ${$_[1]->{"\$isa_check_for_absolute_5fkeyword_5flocation"}};
710s my $_QUOTED = ${$_[1]->{"\$_QUOTED"}};
811µs my $isa_check_for_instance_5flocation = ${$_[1]->{"\$isa_check_for_instance_5flocation"}};
910s my $isa_check_for_keyword_5flocation = ${$_[1]->{"\$isa_check_for_keyword_5flocation"}};
10 package JSON::Schema::Modern::Annotation;
11249µs248µs
# spent 30µs (12+18) within JSON::Schema::Modern::Annotation::BEGIN@11.334 which was called: # once (12µs+18µs) by Sub::Quote::_clean_eval at line 11
no warnings 'closure';
# spent 30µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@11.334 # spent 18µs making 1 call to warnings::unimport
12
# spent 3.14s (2.03+1.11) within JSON::Schema::Modern::Annotation::new which was called 72038 times, avg 44µs/call: # 72037 times (2.03s+1.11s) by JSON::Schema::Modern::Utilities::A at line 256 of JSON/Schema/Modern/Utilities.pm, avg 44µs/call # once (30µs+20µs) by JSON::Schema::Modern::Utilities::A at line 177 of Sub/Defer.pm
sub new {
13 ($_QUOTED,$_UNQUOTED) if 0;
14# BEGIN quote_sub PRELUDE
15package JSON::Schema::Modern::Annotation;
16
# spent 4µs within JSON::Schema::Modern::Annotation::BEGIN@16.335 which was called: # once (4µs+0s) by Sub::Quote::_clean_eval at line 21
BEGIN {
1711µs $^H = 2018;
1810s ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU";
1913µs %^H = (
20 );
211213µs14µs}
22# END quote_sub PRELUDE
237203719.5ms my $invoker = CORE::shift();
247203727.9ms my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker;
257203725.0ms if ($class ne "JSON::Schema::Modern::Annotation") {
26 if ($Moo::MAKERS{$class}) {
27 if ($Moo::MAKERS{$class}{constructor}) {
28 package JSON::Schema::Modern::Annotation;
29 return $invoker->SUPER::new(@_);
30 }
31 Moo->_constructor_maker_for($class);
32 return $invoker->new(@_);
33 } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) {
34 return $meta->new_object(
35 $class->can("BUILDARGS") ? $class->BUILDARGS(@_)
36 : $class->Moo::Object::BUILDARGS(@_)
37 );
38 }
39 }
40 my $args = scalar @_ == 1
41 ? CORE::ref $_[0] eq 'HASH'
4272037194ms ? { %{ $_[0] } }
43 : Carp::croak("Single parameters to new() must be a HASH ref"
44 . " data => ". $_[0])
45 : @_ % 2
46 ? Carp::croak("The new() method for $class expects a hash reference or a"
47 . " key/value list. You passed an odd number of arguments")
48 : {@_}
49 ;
5072037104ms if (my @missing = grep !exists $args->{$_}, "annotation", "instance_location", "keyword", "keyword_location") {
51 Carp::croak("Missing required arguments: ".CORE::join(', ', sort @missing));
52 }
537203735.1ms my $new = bless({}, $class);;
547203721.9ms(exists $args->{"absolute_keyword_location"} and ($new->{"absolute_keyword_location"} = scalar do { my $value = do {
5572037112ms local $Method::Generate::Accessor::CurrentAttribute = {
56 init_arg => "absolute_keyword_location",
57 name => "absolute_keyword_location",
58 step => "coercion",
59 };
607203732.4ms (my $_return),
61 (my $_error), (my $_old_error = $@);
627203730.6ms (eval {
63 ($@ = $_old_error),
64 ($_return =
6572037153ms720371.05s$coerce_for_absolute_5fkeyword_5flocation->($args->{"absolute_keyword_location"})),
66 1
67 } or
68 $_error = CORE::ref $@ ? $@ : "coercion for \"absolute_keyword_location\" failed: ".$@);
697203724.5ms ($@ = $_old_error),
70 (defined $_error and CORE::die $_error);
717203770.1ms $_return;
72}
73;
74216113340ms14407660.8ms
# spent 19µs (7+12) within JSON::Schema::Modern::Annotation::BEGIN@74 which was called: # once (7µs+12µs) by Sub::Quote::_clean_eval at line 74
(do { no warnings "void"; package Type::Tiny; ((Scalar::Util::blessed($value) and $value->isa(q[Mojo::URL]))) or Type::Tiny::_failed_check($isa_check_for_absolute_5fkeyword_5flocation, "InstanceOf[\"Mojo::URL\"]", $value, "attribute_name","absolute_keyword_location","attribute_step","isa check","mgaca","0","varname","\$args->{\"absolute_keyword_location\"}"); $value }),
# spent 32.5ms making 72037 calls to Scalar::Util::blessed, avg 451ns/call # spent 28.3ms making 72037 calls to UNIVERSAL::isa, avg 392ns/call # spent 19µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@74 # spent 12µs making 1 call to warnings::unimport
75 $value
76}
77)),
78(exists $args->{"annotation"} and ($new->{"annotation"} = $args->{"annotation"})),
797203719.2ms(exists $args->{"instance_location"} and ($new->{"instance_location"} = scalar do { my $value = $args->{"instance_location"};
80288150107ms225µs
# spent 15µs (5+10) within JSON::Schema::Modern::Annotation::BEGIN@80 which was called: # once (5µs+10µs) by Sub::Quote::_clean_eval at line 80
(do { no warnings "void"; package Type::Tiny; (do { package Type::Tiny; defined($value) and do { ref(\$value) eq 'SCALAR' or ref(\(my $val = $value)) eq 'SCALAR' } }) or Type::Tiny::_failed_check($isa_check_for_instance_5flocation, "Str", $value, "attribute_name","instance_location","attribute_step","isa check","mgaca","0","varname","\$args->{\"instance_location\"}"); $value }),
# spent 15µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@80 # spent 10µs making 1 call to warnings::unimport
81 $value
82}
83)),
847203724.2ms(exists $args->{"keyword"} and ($new->{"keyword"} = scalar do { my $value = $args->{"keyword"};
8528815090.4ms215µs
# spent 9µs (3+6) within JSON::Schema::Modern::Annotation::BEGIN@85 which was called: # once (3µs+6µs) by Sub::Quote::_clean_eval at line 85
(do { no warnings "void"; package Type::Tiny; (do { package Type::Tiny; defined($value) and do { ref(\$value) eq 'SCALAR' or ref(\(my $val = $value)) eq 'SCALAR' } }) or Type::Tiny::_failed_check($isa_check_for_keyword, "Str", $value, "attribute_name","keyword","attribute_step","isa check","mgaca","0","varname","\$args->{\"keyword\"}"); $value }),
# spent 9µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@85 # spent 6µs making 1 call to warnings::unimport
86 $value
87}
88)),
897203720.6ms(exists $args->{"keyword_location"} and ($new->{"keyword_location"} = scalar do { my $value = $args->{"keyword_location"};
9028815079.3ms219µs
# spent 12µs (5+7) within JSON::Schema::Modern::Annotation::BEGIN@90 which was called: # once (5µs+7µs) by Sub::Quote::_clean_eval at line 90
(do { no warnings "void"; package Type::Tiny; (do { package Type::Tiny; defined($value) and do { ref(\$value) eq 'SCALAR' or ref(\(my $val = $value)) eq 'SCALAR' } }) or Type::Tiny::_failed_check($isa_check_for_keyword_5flocation, "Str", $value, "attribute_name","keyword_location","attribute_step","isa check","mgaca","0","varname","\$args->{\"keyword_location\"}"); $value }),
# spent 12µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@90 # spent 7µs making 1 call to warnings::unimport
91 $value
92}
93)),
9472037459ms($new->{"unknown"} = scalar do { my $value = (
95 exists $args->{"unknown"}
967203728.5ms ? $args->{"unknown"}
97 : 0);
98216113104ms213µs
# spent 8µs (3+5) within JSON::Schema::Modern::Annotation::BEGIN@98 which was called: # once (3µs+5µs) by Sub::Quote::_clean_eval at line 98
(do { no warnings "void"; package Type::Tiny; ((!ref $value and (!defined $value or $value eq q() or $value eq '0' or $value eq '1'))) or Type::Tiny::_failed_check($isa_check_for_unknown, "Bool", $value, "attribute_name","unknown","attribute_step","isa check","mgaca","0","varname","\$args->{\"unknown\"}"); $value }),
# spent 8µs making 1 call to JSON::Schema::Modern::Annotation::BEGIN@98 # spent 5µs making 1 call to warnings::unimport
99 $value
100}
101),
102 return $new;
103 }
10411µs $$_UNQUOTED = \&new;
105}
10616µs1;
107
108;